aboutsummaryrefslogtreecommitdiff
path: root/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.tes...
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-12-16 12:45:08 +0000
committerMichael Williamson <mike@zwobble.org>2023-12-16 12:46:37 +0000
commita22fbc506d196a01d8ecbadba8f9708b6fbb6d4f (patch)
tree87c211c50b3641e7b28a9181b754564c494be365 /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
parent415533b5b57c2737595ec3ad74ef84a607ab4570 (diff)
Store additional data before storing free variables
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
-rw-r--r--snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected4
1 files changed, 2 insertions, 2 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
index f248c1db..a421098a 100644
--- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
+++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenDefineFunctionTests]/[method:effectHandlerMethodSwapsEffectHandlerInBody(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected
@@ -36,12 +36,13 @@ Compilation unit elements:
Locals:
* (val "closure__f__0" int)
- * (val "closurePointer__f__0" data-ptr)
* (val "effectHandlerCurrent__0" data-ptr)
+ * (val "closurePointer__f__0" data-ptr)
Instructions:
(
+ (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ())
(alloc-heap (local "closurePointer__f__0") (struct (function-ptr (struct (data-ptr)) (struct ()))))
(
memory-store
@@ -50,7 +51,6 @@ Instructions:
offset=(0)
value=(function-ptr "shed__effectHandlerMethod__f__0")
)
- (call (local "effectHandlerCurrent__0") "shed__runtime__effects_get_handler" ())
(
memory-store
pointer=(local "closurePointer__f__0")